<?php
class Admin_Form_Category extends Zend_Form
{
	public function init()
	{
		$categoryName=$this->createElement('text','categoryName');
		$categoryName->setLabel('Name:')->setRequired(true);
		$this->addElement($categoryName);
		
		$description=$this->createElement('textarea', 'description');
		$description->setLabel('Description:')->setAttrib('ROWS', '4')->setRequired(true);
		$this->addElement($description);
		
		$imageURL=$this->createElement('text', 'imageURL');
		$imageURL->setLabel('ImageURL');
		$this->addElement($imageURL);
		
		$laguageId=$this->createElement('select', 'languageId');
		$laguageId->setLabel("LanguageId")->addMultiOptions(array(1=>1,2=>2));
		$this->addElement($laguageId);
		
				
		$submit=$this->createElement('submit', 'submit');
		$submit->setLabel('Submit');
		$this->addElement($submit);
		$id=$this->createElement('hidden', 'pageid');
		$this->addElement($id);
	}
}